package com.bdzl.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicUpdate;

/**
 * Feedback entity. @author MyEclipse Persistence Tools
 * 用户反馈
 */
@Entity
@Table(name = "feedback")
@DynamicUpdate(true)
public class Feedback  {

	// Fields

		private Integer id;
		private Integer agentId;//代理人Id
		private String content;//反馈内容
		private String name;//联系人名称
		private String tel;//联系人电话
		private Long time;//反馈时间
		private Integer type;//0未读 1 已读
		private Integer  state;//0  删除  1 显示
		

		// Constructors
		@Column(name = "state")
		public Integer getState() {
			return state;
		}

		public void setState(Integer state) {
			this.state = state;
		}

		/** default constructor */
		public Feedback() {
		}

		/** full constructor */
		public Feedback(Integer agentId, String content, String name,
				String tel, Long time, Integer type) {
			this.agentId = agentId;
			this.content = content;
			this.name = name;
			this.tel = tel;
			this.time = time;
			this.type = type;
		}

		// Property accessors
		@Id
		@GeneratedValue
		public Integer getId() {
			return this.id;
		}

		public void setId(Integer id) {
			this.id = id;
		}

		@Column(name = "agent_id")
		public Integer getAgentId() {
			return this.agentId;
		}

		public void setAgentId(Integer agentId) {
			this.agentId = agentId;
		}

		@Column(name = "content")
		public String getContent() {
			return this.content;
		}

		public void setContent(String content) {
			this.content = content;
		}

		@Column(name = "name")
		public String getName() {
			return this.name;
		}

		public void setName(String name) {
			this.name = name;
		}

		@Column(name = "tel")
		public String getTel() {
			return this.tel;
		}

		public void setTel(String tel) {
			this.tel = tel;
		}

		@Column(name = "time")
		public Long getTime() {
			return this.time;
		}

		public void setTime(Long time) {
			this.time = time;
		}

		@Column(name = "type")
		public Integer getType() {
			return this.type;
		}

		public void setType(Integer type) {
			this.type = type;
		}


}
